import request from '@/utils/request'
// 获取章节和课时
export const getSectionAndLesson = id => {
  return request({
    method: 'GET',
    url: '/boss/course/section/getSectionAndLesson',
    params: { courseId: id }
  })
}
// 更新或新增章节
export const saveOrUpdateSection = data => {
  return request({
    method: 'POST',
    url: '/boss/course/section/saveOrUpdateSection',
    data
  })
}
// 更新或新增课时
export const saveOrUpdateLesson = data => {
  return request({
    method: 'POST',
    url: '/boss/course/lesson/saveOrUpdate',
    data
  })
}
